package com.mwj.gulimall.prodict.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mwj.common.utils.PageUtils;
import com.mwj.gulimall.prodict.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author mwj
 * @email mwj@gmail.com
 * @date 2022-09-12 20:09:48
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWIthTrre();

    void removeMenuByIds(List<Long> asList);

    /*
      找到catelogId的完整路径
      [父/子/孙]
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);
}

